package com.trailwalker.traceability.net.client;


import com.trailwalker.traceability.entitiy.application.GlobalData;
import com.trailwalker.traceability.net.CompanyNetworkManager;

/**
 * @author jone.sun
 * @version 1.0
 * @date 2018/11/21 13:09
 */
public abstract class BaseApiRemoteDataSource<T> {
    private T api;

    public BaseApiRemoteDataSource(GlobalData globalData, Class<T> clazz) {
        api = CompanyNetworkManager.getApiInstance(globalData).create(clazz);
    }

    protected T getApi() {
        return api;
    }

}
